﻿@model ZSZ.QianWeb.Models.House.SearchGetModel
@using ZSZ.QianWeb.App_Start
@{
    ViewBag.Title = "Search";
    Layout = "~/Views/shard/_layout.cshtml";
}
@section headerjs{
    <script type="text/javascript" src="~/js/menu.js"></script>
}
<div class="headertwo clearfloat" id="header">
    <a href="javascript:history.go(-1)" class="fl box-s"><i class="iconfont icon-arrow-l fl"></i></a>
    <p class="fl">@ViewBag.CityName</p>
    <a href="javascript:history.go(-1)" class="fr"><i class="iconfont icon-sousuo fl"></i></a>
</div>
<div class="clearfloat" id="main">
    <div class="menu-list clearfloat am-sharetwo">
        <ul class="yiji" id="oe_menu">
            <li>
                <a href="#" class="inactive">区域<i></i></a>
                <ul style="display: none">
                    @foreach (var item in Model.Regions)
                    {
                        <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"regionId",item.Id.ToString()))">@item.Name</a></li>
                    }
                </ul>
            </li>
            <li>
                <a href="#" class="inactive">租金<i></i></a>
                <ul style="display: none">
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"monthRent","100-200"))">100-200元</a></li>
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"monthRent","300-500"))">300-500元</a></li>
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"monthRent","600-800"))">600-800元</a></li>
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"monthRent","800-1000"))">800-1000元</a></li>
                </ul>
            </li>
            <li>
                <a href="#" class="inactive">排序<i></i></a>
                <ul style="display: none">
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"orderBy","montRentDesc"))">价格降序</a></li>
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"orderBy","montRentAsc"))">价格升序</a></li>
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"orderBy","areaDesc"))">面积降序</a></li>
                    <li><a href="/House/Search?@(QianHelper.UpdateQueryString(Request.QueryString,"orderBy","areaAsc"))">面积升序</a></li>
                </ul>
            </li>
        </ul>
    </div>


    <div class="recom clearfloat recomtwo">
        <div class="content clearfloat box-s">
            @foreach (var item in Model.HouseSearch.result)
            {
                <div class="list clearfloat fl box-s">
                    <a href="house-details.html">
                        <div class="tu clearfloat">
                            <span></span>
                            <img src="@item.FirstThumbUrl" />
                        </div>
                        <div class="right clearfloat">
                            <div class="tit clearfloat">
                                <p class="fl">@item.CommunityName</p>
                                <span class="fr">@item.MonthRent<samp>元/月</samp></span>
                            </div>
                            <p class="recom-jianjie">@item.RoomTypeName   |  @(item.Area)m²  |  @item.DecorateStatusName</p>
                            <div class="recom-bottom clearfloat">
                                <span><i class="iconfont icon-duihao"></i>随时住</span>
                                <span><i class="iconfont icon-duihao"></i>家电齐全</span>
                            </div>
                        </div>
                    </a>
                </div>
            }
        </div>
    </div>
</div>
@section footerjs{
    <script type="text/javascript" src="~/js/psong.js"></script>
}


